package kevin.framework.basic.common.thread;

import kevin.framework.basic.common.utils.UrlInfo;

/**
 * @Description: Url信息线程持有
 * @author hjwen
 * @date 2017年10月2日 上午8:51:48
 * 
 */
public class UrlInfoThreadHodler {

	private static ThreadLocal<UrlInfo> urlInfoholder = new ThreadLocal<UrlInfo>();

	public static UrlInfo get() {
		return urlInfoholder.get();
	}

	public static void set(UrlInfo urlInfo) {
		urlInfoholder.set(urlInfo);
	}

	public static void clear() {
		urlInfoholder.remove();
	}
}
